// <copyright file="BlogDatabaseRegistry.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

namespace CleverCMS.Blog.Services.Infrastructure
{
    using CleverCMS.Blog.Data;
    using CleverCMS.Blog.Data.Entities;
    using StructureMap.Configuration.DSL;

    public class BlogDatabaseRegistry : Registry
    {
        public BlogDatabaseRegistry()
        {
            For<BlogDataContext>().Use<BlogDataContext>();
            For<IBlogGenericRepository<BlogEntry>>().Use<BlogGenericRepository<BlogEntry>>();
            For<IBlogGenericRepository<BlogEntryCategory>>().Use<BlogGenericRepository<BlogEntryCategory>>();
            For<IBlogGenericRepository<BlogEntryComment>>().Use<BlogGenericRepository<BlogEntryComment>>();
            For<IBlogGenericRepository<BlogEntryRating>>().Use<BlogGenericRepository<BlogEntryRating>>();
            For<IBlogGenericRepository<BlogEntryTag>>().Use<BlogGenericRepository<BlogEntryTag>>();

            For<IBlogGenericRepository<Feed>>().Use<BlogGenericRepository<Feed>>();
            For<IBlogGenericRepository<FeedResults>>().Use<BlogGenericRepository<FeedResults>>();
            For<IBlogGenericRepository<FeedXPath>>().Use<BlogGenericRepository<FeedXPath>>();
            For<IBlogGenericRepository<XPathRemove>>().Use<BlogGenericRepository<XPathRemove>>();
        }
    }
}